-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HMS-4934: Add modules to introspected data #922
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a3c0075
to
b276d0d
Compare
/retest |
@jlsherrill this failed to build |
@swadeley yes, it will fail to build until content-services/yummy#31 is merged and i update it to use the new yummy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I search for a stream that doesn't exist, I see null as the response. Would empty list be better? I think that's what I would've expected
good call, fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed if I create and introspect a repository before checking-out this PR, then checkout this PR and re-introspect, the module streams don't get added because the repository hasn't changed (I suspect)
good call, updated! |
@@ -45,4 +45,6 @@ ALTER TABLE ONLY module_streams | |||
DROP CONSTRAINT IF EXISTS fk_module_streams_uniq, | |||
ADD CONSTRAINT fk_module_streams_uniq UNIQUE (hash_value); | |||
|
|||
UPDATE repositories SET repomd_checksum = '' where public = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works, so for non public repos the user may have to recreate the repo? This is probably an edge so maybe it's not a big deal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe force introspecting the repo should suffice if needed.
In reality, the only 3rd party repo i know that has modules is nvidia's which gets regular updates, so by the time image builder actually support modules, i imagine it would be refreshed. Or we could manually force its introspection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think force introspecting only forces the task to run, but the task itself will still exit early. But it sounds like this isn't a realistic issue so I agree it should be fine
acked the yummy PR! Small question unrelated to the yummy changes but looks good |
Hi testing in ephemeral first with : https://rverdile.fedorapeople.org/dummy-repos/modules/repo1/ (will test introspected repo in stage)
|
Hi @jlsherrill , please rebase |
Summary
Adds module streams as searchable for introspected repos
Testing steps
go get ./...
make db-migrate-up
make repos-import
go run cmd/external-repos/main.go introspect go run cmd/external-repos/main.go introspect https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os
go run cmd/external-repos/main.go introspect go run cmd/external-repos/main.go introspect https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os
feel free to play with the search and rpm_names